$("#form_transport input[type=text], #form_transport select").removeClass("field-with-errors")
$("#form_transport .error-message").html("").removeClass("red")

<% if @transport.errors.any? %>
  <% flash[:alert] = ' Something missing, Please check again from STEP ONE!' %>
  $("#flash_message_wrapper").html("<%=j render partial: 'layouts/flash_messages' %>"); 
  $('#prerequisites').collapse('toggle');
  <% @transport.errors.each do | field, message| %>
    $("#<%=j field.to_s %>_error").html("<%=j message %>").addClass("red");
  <% end %>
<% else %>
  $('#admin_title').html('transport Updated');
  $('#admin_content').html("<%= j render partial: 'transports/transport_created' %>")
<% end %>